﻿

<%@ Page Language="VB" AutoEventWireup="true"  CodeFile="Default.aspx.vb" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
 

</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
 <script type="text/javascript">
        
        function displayCalendar()
        {
            var datePicker = document.getElementById('datePicker');
            datePicker.style.display = 'block';
        }
    
    </script>
<script type="text/javascript">


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}




</script>
 <style type="text/css">
        #datePicker
        {
            display:none;
            position:absolute;
            border:solid 2px black;
            background-color:white;
           
        }
    
    </style>
<style type="text/css">
html
{
  background-image:url('image/back.jpg'); 

    padding:10px;
    color:White;    
  
}
.content
{
    width:950px;
    margin:auto;
        height: 197px;
    }
a
{
 color: white;
 text-decoration:none;

}
a:hover
{
 color: red; 
  text-decoration:none;

}
.link
{
  margin-left:350px; 
     font-weight:bold;
  font-size:large;  
    font-size:x-large;
}
.link2
{
  margin-left:50px; 
     font-weight:bold;
  font-size:large;  
    font-size:x-large;
}
.join
{
   background-color:#0099FF;
  clip:auto;
  font-weight:bold;
  font-size:large;
}
.table2
{
 border-style:solid;
   border-color:Black;
   background-color:White;
   color:Black;  
   width:900px; 
}
.row
{
   background-color:Gray;
   color:White;
}
.ticket
{
   background-color:#CC0000;
color:White;

}

.ticket:hover
{
 color: black; 
  text-decoration:none;


}
    .style1
    {
        width: 509px;
    }
    
.footer
{

     font-weight:bold;
  font-size:large;  

}
.priceheader
{
    background-image: linear-gradient(bottom, rgb(196,14,23) 20%, rgb(16,26,26) 60%);
background-image: -o-linear-gradient(bottom, rgb(196,14,23) 20%, rgb(16,26,26) 60%);
background-image: -moz-linear-gradient(bottom, rgb(196,14,23) 20%, rgb(16,26,26) 60%);
background-image: -webkit-linear-gradient(bottom, rgb(196,14,23) 20%, rgb(16,26,26) 60%);
background-image: -ms-linear-gradient(bottom, rgb(196,14,23) 20%, rgb(16,26,26) 60%);

}
.priceheader2
{
background-image: linear-gradient(bottom, rgb(255,255,255) 20%, rgb(240,0,12) 72%);
background-image: -o-linear-gradient(bottom, rgb(255,255,255) 20%, rgb(240,0,12) 72%);
background-image: -moz-linear-gradient(bottom, rgb(255,255,255) 20%, rgb(240,0,12) 72%);
background-image: -webkit-linear-gradient(bottom, rgb(255,255,255) 20%, rgb(240,0,12) 72%);
background-image: -ms-linear-gradient(bottom, rgb(255,255,255) 20%, rgb(240,0,12) 72%);
}
</style>
    <title>Prices</title>
</head>
<body>
    <form id="form1" runat="server">
    <div class="content">
 <asp:Image ID="Image1" Width="1000" Height="130" ImageUrl="~/image/tdk-jun5-bannerbatmanexclusivo2.jpg" runat="server" />

<asp:HyperLink ID="HyperLink14"  CssClass="link" NavigateUrl="~/Default.aspx" runat="server">Home</asp:HyperLink>
<asp:HyperLink ID="HyperLink1"  CssClass="link2" NavigateUrl="~/Session.aspx" runat="server">Session</asp:HyperLink> <asp:HyperLink ID="HyperLink2" CssClass="link2" NavigateUrl="~/Movie.aspx" runat="server">Movies</asp:HyperLink>
<asp:HyperLink ID="HyperLink3" CssClass="link2"  NavigateUrl="~/Price.aspx" runat="server">Prices</asp:HyperLink>
<asp:HyperLink ID="HyperLink6" CssClass="link2"  NavigateUrl="~/register.aspx" runat="server">Register</asp:HyperLink>
 <br /> <br />
      
  
 <table >
 
 <tr><td><asp:Label ID="Label6" runat="server"  ForeColor="Yellow" Text="Buy Tickets For:" Font-Bold="True"></asp:Label>  </td> <td>  <asp:Menu
        id="menuTabs"
      StaticMenuItemStyle-BackColor="#333333" 
        StaticMenuItemStyle-Font-Size="Larger"
       DynamicHorizontalOffset="0"   
      DynamicHoverStyle-BackColor="#666666"
        DynamicMenuItemStyle-Width="150px"
       DynamicMenuItemStyle-BackColor="#333333" runat="server">
       <Items>
       <asp:MenuItem
       Text="Theatre" Selectable="False"  >
     <asp:MenuItem
       Text="Southwestcinema4"
   
        NavigateUrl="~/MovieCinema1.aspx" />
    <asp:MenuItem
      Text="RuralTwinCinemas"
     NavigateUrl="~/MovieCinema2.aspx" />
   </asp:MenuItem>
       </Items>
       </asp:Menu></td><td>&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp&nbsp;&nbsp&nbsp&nbsp;&nbsp &nbsp&nbsp;&nbsp&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp&nbsp;&nbsp&nbsp&nbsp;&nbsp &nbsp&nbsp;&nbsp</td><td> <asp:Label ID="Label4" runat="server" Text="Label"></asp:Label></td>
<td>&nbsp;&nbsp;&nbsp;&nbsp&nbsp;&nbsp&nbsp;&nbsp&nbsp&nbsp;&nbsp &nbsp&nbsp;&nbsp 
    <asp:Label ID="Label5" runat="server" Text="UserName" Font-Bold="True"></asp:Label>    <asp:LoginName ID="LoginName1" runat="server" /> &nbsp;&nbsp;<asp:HyperLink ID="HyperLink15"  Font-Bold="True" Font-Underline="True" runat="server"  ForeColor="Yellow" />&nbsp;
    <asp:LoginStatus ID="LoginStatus1" runat="server" />
    
    </td>
<td></td>
</tr>
  </table>
   <br />

        <table  cellpadding="20px" border="1"  center" align="center">
       <tr><th colspan="2" style="background-color: #003366" class="priceheader">SouthWestCinemas4</th><th colspan="2"  class="priceheader2"   bgcolor="#666699">Rural Twin Cinema</th></tr>
    <tr><th>[Cinema 1,2]</th><th>[Special Ticket]</th><th>[Cinema 5,6]</th><th>[Special Ticket]</th></tr>
   <tr><td>    
<asp:GridView ID="GridView2" DataSourceID="SqlDataSource2" AutoGenerateColumns="false"  runat="server" AlternatingRowStyle-BackColor="White" AlternatingRowStyle-ForeColor="black">

    <Columns>
<asp:BoundField DataField="TicketType" HeaderText="Ticket Type" />
<asp:BoundField DataField="price" DataFormatString="{0:c}" HeaderText="Price" />
    
    </Columns>

</asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
            SelectCommand="SELECT top 5 [TicketType], [Price] FROM [TicketPrices] WHERE ([type] = @type)">
        <SelectParameters>
            <asp:Parameter DefaultValue="Normal" Name="type" Type="String" />
        </SelectParameters>
        </asp:SqlDataSource>     </td><td> <asp:GridView ID="GridView1" AutoGenerateColumns="false"  DataSourceID="SqlDataSource1"
        AlternatingRowStyle-BackColor="White" AlternatingRowStyle-ForeColor="black"
         runat="server">
    <Columns>
<asp:BoundField DataField="TicketType" HeaderText="Ticket Type" />
<asp:BoundField DataField="price" DataFormatString="{0:c}" HeaderText="Price" />
</Columns>
     
     
     </asp:GridView>
     <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
         ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
         
               SelectCommand="SELECT  [TicketType], [Price] FROM [TicketPrices] WHERE (([type] = @type) AND ([Cinema] = @Cinema))">
         <SelectParameters>
             <asp:Parameter DefaultValue="Special" Name="type" Type="String" />
             <asp:Parameter DefaultValue="1" Name="Cinema" Type="Decimal" />
         </SelectParameters>
     </asp:SqlDataSource>
        </SelectParameters>
        </asp:SqlDataSource></td><td>    
<asp:GridView ID="GridView7" DataSourceID="SqlDataSource7"  AutoGenerateColumns="false"
AlternatingRowStyle-BackColor="White" AlternatingRowStyle-ForeColor="black"
 runat="server" >

    <Columns>
<asp:BoundField DataField="TicketType" HeaderText="Ticket Type" />
<asp:BoundField DataField="price" DataFormatString="{0:c}" HeaderText="Price" />
</Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource7" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
    
           SelectCommand="SELECT [Price], [TicketType] FROM [TicketPrices] WHERE (([cinema] = @cinema) AND ([Type] = @Type))">
        <SelectParameters>
            <asp:Parameter DefaultValue="5" Name="cinema" Type="Int16" />
            <asp:Parameter DefaultValue="Normal" Name="Type" Type="String" />
        </SelectParameters>
        </asp:SqlDataSource>     </td><td> <asp:GridView ID="GridView8" AutoGenerateColumns="false" DataSourceID="SqlDataSource8"
        AlternatingRowStyle-BackColor="White" AlternatingRowStyle-ForeColor="black"
         runat="server">
    <Columns>
<asp:BoundField DataField="TicketType" HeaderText="Ticket Type" />
<asp:BoundField DataField="price" DataFormatString="{0:c}" HeaderText="Price" />
</Columns> 
     
    </asp:GridView>
     <asp:SqlDataSource ID="SqlDataSource8" runat="server" 
         ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
         
               SelectCommand="SELECT [TicketType], [Price] FROM [TicketPrices] WHERE (([type] = @type) AND ([cinema] = @cinema))">
         <SelectParameters>
             <asp:Parameter DefaultValue="Special" Name="type" Type="String" />
             <asp:Parameter DefaultValue="5" Name="cinema" Type="Int16" />
         </SelectParameters>
     </asp:SqlDataSource>
        </SelectParameters>
        </asp:SqlDataSource></td>
        
        </tr>
 <tr><th>[Cinema 3,4]  (Prenium Cinema)</th><th>[Special Ticket]</th></tr>        
 <tr><td colspan="1">
     <asp:GridView ID="GridView3"  DataSourceID="SqlDataSource3"  AutoGenerateColumns="false"
     
     AlternatingRowStyle-BackColor="White" AlternatingRowStyle-ForeColor="black"
      runat="server">

  <Columns>
<asp:BoundField DataField="TicketType" HeaderText="Ticket Type" />
<asp:BoundField DataField="price" DataFormatString="{0:c}" HeaderText="Price" />
</Columns>
     </asp:GridView>
     <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
         ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
         SelectCommand="SELECT [TicketType], [Price] FROM [TicketPrices] WHERE (([type] = @type) AND ([cinema] = @cinema))">
         <SelectParameters>
             <asp:Parameter DefaultValue="Normal" Name="type" Type="String" />
             <asp:Parameter DefaultValue="3" Name="cinema" Type="Int16" />
         </SelectParameters>
     </asp:SqlDataSource></td>
 <td> 
     <asp:GridView ID="GridView4" DataSourceID="SqlDataSource4"  AutoGenerateColumns="false"
     AlternatingRowStyle-BackColor="White" AlternatingRowStyle-ForeColor="black"
      runat="server">
    <Columns>
<asp:BoundField DataField="TicketType" HeaderText="Ticket Type" />
<asp:BoundField DataField="price" DataFormatString="{0:c}" HeaderText="Price" />
</Columns>  
  
  
  </asp:GridView>
     <asp:SqlDataSource ID="SqlDataSource4" runat="server" 
         ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
         SelectCommand="SELECT [TicketType], [Price] FROM [TicketPrices] WHERE (([type] = @type) AND ([cinema] = @cinema))">
         <SelectParameters>
             <asp:Parameter DefaultValue="Special" Name="type" Type="String" />
             <asp:Parameter DefaultValue="3" Name="cinema" Type="Int16" />
         </SelectParameters>
     </asp:SqlDataSource>   
     
 </td></tr>       
 
        </table> 
 
    
 <table width="100" cellpadding="15" ><tr><td>Copyright@2012 MovieTix</td><td><asp:HyperLink ID="HyperLink8"  CssClass="footer" NavigateUrl="~/Default.aspx" runat="server">Homepage</asp:HyperLink></td><td><asp:HyperLink ID="HyperLink9"  CssClass="footer" NavigateUrl="~/Session.aspx" runat="server">Session</asp:HyperLink></td><td><asp:HyperLink ID="HyperLink10"  CssClass="footer" NavigateUrl="~/Movie.aspx" runat="server">Movies</asp:HyperLink></td><td><asp:HyperLink ID="HyperLink12"  CssClass="footer" NavigateUrl="~/register.aspx" runat="server">Register</asp:HyperLink></td><td><asp:HyperLink ID="HyperLink13"  CssClass="footer" NavigateUrl="~/Login.aspx" runat="server">Log In</asp:HyperLink></td></tr></table>

 </div>
  </form>
</body>
</html>
